package com.wuseguang.springcloud.dao.repository;

import com.wuseguang.springcloud.entity.ClassDay;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface ClassDayRepository  extends JpaRepository<ClassDay,Integer> {

    @Query(value = "select id,`day` , `second`,school_id FROM class_day where school_id= ?1",nativeQuery = true)
    ClassDay findBySchoolId(Integer schooolId);

}
